package com.zzyl.controller.customer;

import com.zzyl.base.ResponseResult;
import com.zzyl.dto.UserLoginRequestDto;
import com.zzyl.service.MemberService;
import com.zzyl.vo.LoginVo;
import com.zzyl.vo.LoginVo1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Insight
 * @Description: TODO
 * @Date: 2024/6/9 12:12
 * @Version: 1.0
 */
@RestController
public class CustomerUserController {
    @Autowired
    MemberService service;

    @PostMapping("/customer/user/login")
    public ResponseResult<LoginVo1> login(@RequestBody UserLoginRequestDto dto) {
        LoginVo1 vo = service.login(dto);
        return ResponseResult.success(vo);
    }
}
